<{include file="../common/header.tpl"}>
<table width="100%" border="0" cellspacing="0">
 <tr>
    <td width="13%" valign="top">
            <{include file="../common/left.tpl"}>
    </td>
    <td width="87%" valign="top">
        
        <table width="100%" border="0" cellspacing="0">
                <tr>
                <td>
                    <div class="subnav">
                      <div class="content-menu ib-a blue line-x"> <a href="/webadmin/network/add" class="on"><em>添加网点</em></a></div>
                    </div>
              <div class="pad_10">
                <div class="table-list">
                <table width="100%">
                      <thead>
                        <tr>
                            <th width="71">ID</th>
                            <th width="299">组名</th>
                            <th width="198">所含网点数量</th>
                            <th width="270">管理操作</th>
                        </tr>
                      </thead>
                      <tbody>
                        <{foreach $list as $key => $val}>
	                        
                        <tr>
                            <td align="center"><{$val.group_id}></td>
                            <td align="center"><{$groups[$val.group_id].group_name}></td>
                            <td align="center"><{$val.count}></td>
                            <td align="center">--</td>
                        </tr>
	                        
                        <{/foreach}>
                         
                      </tbody>
                </table>
                        <div style="float:right;"><{$page}></div>
                </div>
              </div>
            </td>
		  </tr>
		</table>
    </td>
 </tr>
</table>
<script type="text/javascript">
$(document).ready(function($) {
	$('a[name="delete"]').click(function() {
		var id = $(this).attr('rel');
		if (id == ''){
			return false;
		}
		$or = confirm('你确定要删除吗？');
		if($or){
	  		$.ajax({
	 			 type:'post',
	 			 async : true,
				 dataType:"json",
				 data: {'network_id':id},
	 			 url:'/webadmin/network/delete',
	 			 success:function(data){
	 				alert(data.note);
	 				if(!data.status){
						return false ;
					}else{
						location.reload();
					}
	 			 }
	 		});
	  	}
	});
});
</script>
<{include file="../common/footer.tpl"}>